/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.crossriver.crgis.database.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * This class is used by
 * {@link com.crossriver.crgis.database.service.http.TransactionsServiceSoap}.
 * </p>
 *
 * @author    Wole Adetiba
 * @see       com.crossriver.crgis.database.service.http.TransactionsServiceSoap
 * @generated
 */
public class TransactionsSoap implements Serializable {
	public static TransactionsSoap toSoapModel(Transactions model) {
		TransactionsSoap soapModel = new TransactionsSoap();

		soapModel.setTransactionNo(model.getTransactionNo());
		soapModel.setUserId(model.getUserId());
		soapModel.setTransactionRef(model.getTransactionRef());
		soapModel.setItemId(model.getItemId());
		soapModel.setItemDescription(model.getItemDescription());
		soapModel.setPaymentType(model.getPaymentType());
		soapModel.setPaymentDate(model.getPaymentDate());
		soapModel.setReceiptNo(model.getReceiptNo());
		soapModel.setInvoiceNo(model.getInvoiceNo());
		soapModel.setApplicationType(model.getApplicationType());
		soapModel.setBankCode(model.getBankCode());
		soapModel.setBankName(model.getBankName());
		soapModel.setBankReference(model.getBankReference());
		soapModel.setAccountNo(model.getAccountNo());
		soapModel.setAmount(model.getAmount());
		soapModel.setApprovedAmount(model.getApprovedAmount());
		soapModel.setTransactionFee(model.getTransactionFee());
		soapModel.setBatchId(model.getBatchId());
		soapModel.setStatus(model.getStatus());
		soapModel.setResponseCode(model.getResponseCode());
		soapModel.setResponseDescription(model.getResponseDescription());
		soapModel.setPayRef(model.getPayRef());
		soapModel.setRetRef(model.getRetRef());
		soapModel.setCardNum(model.getCardNum());

		return soapModel;
	}

	public static TransactionsSoap[] toSoapModels(Transactions[] models) {
		TransactionsSoap[] soapModels = new TransactionsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static TransactionsSoap[][] toSoapModels(Transactions[][] models) {
		TransactionsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new TransactionsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new TransactionsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static TransactionsSoap[] toSoapModels(List<Transactions> models) {
		List<TransactionsSoap> soapModels = new ArrayList<TransactionsSoap>(models.size());

		for (Transactions model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new TransactionsSoap[soapModels.size()]);
	}

	public TransactionsSoap() {
	}

	public String getPrimaryKey() {
		return _transactionNo;
	}

	public void setPrimaryKey(String pk) {
		setTransactionNo(pk);
	}

	public String getTransactionNo() {
		return _transactionNo;
	}

	public void setTransactionNo(String transactionNo) {
		_transactionNo = transactionNo;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getTransactionRef() {
		return _transactionRef;
	}

	public void setTransactionRef(String transactionRef) {
		_transactionRef = transactionRef;
	}

	public String getItemId() {
		return _itemId;
	}

	public void setItemId(String itemId) {
		_itemId = itemId;
	}

	public String getItemDescription() {
		return _itemDescription;
	}

	public void setItemDescription(String itemDescription) {
		_itemDescription = itemDescription;
	}

	public String getPaymentType() {
		return _paymentType;
	}

	public void setPaymentType(String paymentType) {
		_paymentType = paymentType;
	}

	public Date getPaymentDate() {
		return _paymentDate;
	}

	public void setPaymentDate(Date paymentDate) {
		_paymentDate = paymentDate;
	}

	public String getReceiptNo() {
		return _receiptNo;
	}

	public void setReceiptNo(String receiptNo) {
		_receiptNo = receiptNo;
	}

	public String getInvoiceNo() {
		return _invoiceNo;
	}

	public void setInvoiceNo(String invoiceNo) {
		_invoiceNo = invoiceNo;
	}

	public String getApplicationType() {
		return _applicationType;
	}

	public void setApplicationType(String applicationType) {
		_applicationType = applicationType;
	}

	public String getBankCode() {
		return _bankCode;
	}

	public void setBankCode(String bankCode) {
		_bankCode = bankCode;
	}

	public String getBankName() {
		return _bankName;
	}

	public void setBankName(String bankName) {
		_bankName = bankName;
	}

	public String getBankReference() {
		return _bankReference;
	}

	public void setBankReference(String bankReference) {
		_bankReference = bankReference;
	}

	public String getAccountNo() {
		return _accountNo;
	}

	public void setAccountNo(String accountNo) {
		_accountNo = accountNo;
	}

	public Double getAmount() {
		return _amount;
	}

	public void setAmount(Double amount) {
		_amount = amount;
	}

	public Double getApprovedAmount() {
		return _approvedAmount;
	}

	public void setApprovedAmount(Double approvedAmount) {
		_approvedAmount = approvedAmount;
	}

	public Double getTransactionFee() {
		return _transactionFee;
	}

	public void setTransactionFee(Double transactionFee) {
		_transactionFee = transactionFee;
	}

	public String getBatchId() {
		return _batchId;
	}

	public void setBatchId(String batchId) {
		_batchId = batchId;
	}

	public String getStatus() {
		return _status;
	}

	public void setStatus(String status) {
		_status = status;
	}

	public String getResponseCode() {
		return _responseCode;
	}

	public void setResponseCode(String responseCode) {
		_responseCode = responseCode;
	}

	public String getResponseDescription() {
		return _responseDescription;
	}

	public void setResponseDescription(String responseDescription) {
		_responseDescription = responseDescription;
	}

	public String getPayRef() {
		return _payRef;
	}

	public void setPayRef(String payRef) {
		_payRef = payRef;
	}

	public String getRetRef() {
		return _retRef;
	}

	public void setRetRef(String retRef) {
		_retRef = retRef;
	}

	public String getCardNum() {
		return _cardNum;
	}

	public void setCardNum(String cardNum) {
		_cardNum = cardNum;
	}

	private String _transactionNo;
	private String _userId;
	private String _transactionRef;
	private String _itemId;
	private String _itemDescription;
	private String _paymentType;
	private Date _paymentDate;
	private String _receiptNo;
	private String _invoiceNo;
	private String _applicationType;
	private String _bankCode;
	private String _bankName;
	private String _bankReference;
	private String _accountNo;
	private Double _amount;
	private Double _approvedAmount;
	private Double _transactionFee;
	private String _batchId;
	private String _status;
	private String _responseCode;
	private String _responseDescription;
	private String _payRef;
	private String _retRef;
	private String _cardNum;
}